package com.hspedu.homework.homework8;

import java.util.Date;

public class CheckingAccount extends BankAccount{
    public CheckingAccount(double initialBalance) {
        super(initialBalance);
    }

    //重写 取款，存款金额

    @Override
    public void deposit(double amount) {
        super.deposit(amount-1);
        date = new Date();
    }

    @Override
    public void withdraw(double amount) {
        super.withdraw(amount+1);

    }
}
